<include file="App/Admin/View/Public/left.html"/>
<div class="admin">

<div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder">留言板 </strong></div>
  <table class="table table-hover text-center">
    <tr>
      <th width="5%">ID</th>
      <th width="15%">发件人</th>
      <th width="50px">留言内容</th>
      <th width="10%">发件时间</th>
      <th width="10%">状态</th>
      <th width="20%">操作</th>
    </tr>
   <volist name="list" id="vo">
    <tr>
      <td>{$vo.id}</td>                
      <td>{$vo.name}</td>
      <td ><div style="overflow: auto; height:100px;">{$vo.message}</div></td>
    <td>{$vo.add_time|date="Y-m-d H:i:s",###}</td>
    <td><eq name="vo['status']" value="1">已读<else/><span style='color:red'>未读</span></eq></td>
      <td>
    <div class="button-group">  <a class="button border-blue" href="{:U('Contact/info',array('id'=>$vo['id']))}"> 查看详情</a> </div>
    <div class="button-group">  <a class="button border-red" href="{:U('Contact/delete',array('id'=>$vo['id']))}"> 删 除</a></div></a> </div>
      
  </td>
    </tr>
  
    </volist>
  </table>
  
</div>
<div class="pagelist">{$page} </div>
<script>
function adopt(id){
	$.post("{:U('Liuyan/yidu')}",{'id':id},function(d){
		layer.msg(d['info']);
		if(d['status']==1){
			window.location.reload();
		}
	});
}
</script>